package com.weiyi.mashangzhu.Base;


import android.app.Activity;
import android.view.View;

import com.weiyi.mashangzhu.http.HttpUtil;

import butterknife.ButterKnife;

public abstract class BasePage {

    protected Activity mActivity;
    protected int mIndex;
    public View mRootView;
    protected HttpUtil mHttpUtil;

    public BasePage(Activity activity, int mIndex) {
        this.mActivity = activity;
        this.mIndex = mIndex;

        mRootView = initView(mIndex);
        mHttpUtil = HttpUtil.getInstance();

        ButterKnife.bind(this, mRootView);
    }

    public abstract View initView(int i);
    public abstract void initData(int i);

}
